USE EstudiosComerciales
go
IF OBJECT_ID('dbo.WASP_D0004_ACTUALIZA_FLAG') IS NOT NULL
BEGIN
    DROP PROCEDURE dbo.WASP_D0004_ACTUALIZA_FLAG
    IF OBJECT_ID('dbo.WASP_D0004_ACTUALIZA_FLAG') IS NOT NULL
        PRINT '<<< FAILED DROPPING PROCEDURE dbo.WASP_D0004_ACTUALIZA_FLAG >>>'
    ELSE
        PRINT '<<< DROPPED PROCEDURE dbo.WASP_D0004_ACTUALIZA_FLAG >>>'
END
go
SET ANSI_NULLS ON
go
SET QUOTED_IDENTIFIER ON
go
CREATE PROCEDURE WASP_D0004_ACTUALIZA_FLAG
AS

UPDATE [SQL].[FLAG_PD] SET  FLAG = FLAG + 1 , CDATE = GETDATE()
go
SET ANSI_NULLS OFF
go
SET QUOTED_IDENTIFIER OFF
go
IF OBJECT_ID('dbo.WASP_D0004_ACTUALIZA_FLAG') IS NOT NULL
    PRINT '<<< CREATED PROCEDURE dbo.WASP_D0004_ACTUALIZA_FLAG >>>'
ELSE
    PRINT '<<< FAILED CREATING PROCEDURE dbo.WASP_D0004_ACTUALIZA_FLAG >>>'
go
